import i18n from '../../i18n/i18n'
export const tableOption = {
  border: true,
  index: true,
  indexLabel: i18n.t('number'),
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  column: [
    {
      label: i18n.t('order.refundId'),
      prop: 'refundSn',
      search: true
    },
    {
      label: i18n.t('order.applicationType'),
      prop: 'applyType',
      type: 'select',
      select: true,
      dicData: [
        {
          label: i18n.t('order.onlyRefund'),
          value: 1
        }, {
          label: i18n.t('order.refundAndMoney'),
          value: 2
        }
      ]
    },
    {
      label: i18n.t('order.number'),
      prop: 'orderNumber',
      search: true
    },
    {
      label: i18n.t('order.orderAmount'),
      prop: 'orderAmount'
    },
    {
      label: i18n.t('order.refundAmount'),
      prop: 'refundAmount'
    },
    {
      label: i18n.t('order.applicationTime'),
      prop: 'applyTime',
      type: 'datetimerange',
      search: true
    },
    {
      label: i18n.t('order.refundStatus'),
      prop: 'returnMoneySts',
      search: true,
      type: 'select',
      dicData: [
        {
          label: i18n.t('order.refundApplication'),
          value: 1
        }, {
          label: i18n.t('order.processingRefunds'),
          value: 2
        }, {
          label: i18n.t('order.shipped'),
          value: 3
        }, {
          label: i18n.t('order.waitingRefund'),
          value: 4
        }, {
          label: i18n.t('order.refundsuccessfully'),
          value: 5
        }, {
          label: i18n.t('order.withdrawsApplication'),
          value: 6
        },
        // {
        //   label: i18n.t('order.refusedRefund'),
        //   value: 7
        // },
        {
          label: i18n.t('order.refundClosed'),
          value: -1
        }
      ]
    }
  ]
}
